/*
 * @Authoryour name
 * @Date2021-01-03 17:12:18
 * @LastEditTime2021-01-03 17:12:18
 * @LastEditorsyour name
 * @DescriptionIn User Settings Edit
 * @FilePath\ART-Pi_STM32H750_Bootloader\User\bootloader\uart\uart_if.h
 */ 
#ifndef UART_IF_H_
#define UART_IF_H_

#include "common_types.h"
#include "bsp_uart.h"

extern inline uint8_t uart_if_receive(uint8_t *pdata, uint16_t size, uint32_t timeout);
extern inline uint8_t uart_if_transmit(uint8_t *pdata, uint16_t size, uint32_t timeout);
extern inline void uart_if_flush_drregister(void);
extern inline uint32_t uart_if_get_state(void);
extern inline void uart_if_set_state(uint32_t state);

#endif
